package cn.xm.org.domain;

import cn.xm.basic.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;
import java.util.Date;


/**
 * <p>
 * 
 * </p>
 *
 * @author xm
 * @since 2022-12-17
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Shop extends BaseDomain {

    private static final long serialVersionUID = 1L;
    @NotEmpty(message = "姓名不能为空")
    private String name;
    @NotEmpty(message = "电话不能为空")
    private String tel;
    private Date registerTime = new Date();
    /**
     * 店铺状态：0待审核，1以审核，-1驳回，2待激活
     */
    private Integer state = 0;
    private String address;
    private String logo;
    private Long adminId;

    private Emp admin = new Emp();

}
